<?php
Yii::import('ext.bootstrap.components.Bootstrap');
class CBootstrap extends Bootstrap
{
    /**
     * @var boolean indicates whether assets should be republished on every request.
     */
    public $forceCopyAssets = false;
    
    

    /**
     * Returns the URL to the published assets folder.
     * @return string the URL
     */
    public function getAssetsUrl()
    {
        if (isset($this->_assetsUrl))
            return $this->_assetsUrl;
        else
        {
            $assetsPath = Yii::getPathOfAlias('application.extensions.bootstrap.assets');
            $assetsUrl = Yii::app()->assetManager->publish($assetsPath, false, -1, $this->forceCopyAssets);
            return $this->_assetsUrl = $assetsUrl;
        }
    }

}
?>
